home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / PInterfaces / CRMSerialDevices.p < prev    next >
Encoding:
Text File  |  1993-09-17  |  1.4 KB  |  72 lines  |  [TEXT/MPS ]

  1. {
  2.     File:        CRMSerialDevices.p
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. }
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT CRMSerialDevices;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingCRMSerialDevices}
  22. {$SETC UsingCRMSerialDevices := 1}
  23.  
  24. {$I+}
  25. {$SETC CRMSerialDevicesIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$SETC UsingIncludes := CRMSerialDevicesIncludes}
  31.  
  32. CONST
  33.  
  34. {    for the crmDeviceType field of the CRMRec data structure }
  35. crmSerialDevice = 1;
  36.  
  37.  
  38. {  version of the CRMSerialRecord below }
  39. curCRMSerRecVers = 1;
  40.  
  41. TYPE
  42. { Maintains compatibility w/ apps & tools that expect an old style icon    }
  43. CRMIconPtr = ^CRMIconRecord;
  44. CRMIconHandle = ^CRMIconPtr;
  45. CRMIconRecord = RECORD
  46.  oldIcon: ARRAY [0..31] OF LONGINT;        { ICN#    }
  47.  oldMask: ARRAY [0..31] OF LONGINT;
  48.  theSuite: Handle;                        { Handle to an IconSuite    }
  49.  reserved: LONGINT;
  50.  END;
  51.  
  52. CRMSerialPtr = ^CRMSerialRecord;
  53. CRMSerialRecord = RECORD
  54.  version: INTEGER;
  55.  inputDriverName: StringHandle;
  56.  outputDriverName: StringHandle;
  57.  name: StringHandle;
  58.  deviceIcon: CRMIconHandle;
  59.  ratedSpeed: LONGINT;
  60.  maxSpeed: LONGINT;
  61.  reserved: LONGINT;
  62.  END;
  63.  
  64.  
  65.  
  66. {$ENDC} { UsingCRMSerialDevices }
  67.  
  68. {$IFC NOT UsingIncludes}
  69.  END.
  70. {$ENDC}
  71.  
  72.